package tom.jma;

import java.lang.instrument.Instrumentation;

/**
 * premain agent bytecode <br>
 *     usage: <br>
 *         <code>
 *             java -javaagent:jmethod-agent-1.0.jar -jar app.jar <br>
 *             java -javaagent:jmethod-agent-1.0.jar='my.properties' -jar app.jar
 *
 *         </code>
 *
 * @author tom
 * @date 2021/12/15 09:52
 **/
public class MethodAgent {

    public static void premain(String agentArgs, Instrumentation instrumentation) {
        instrumentation.addTransformer(new MethodPerfTransformer(agentArgs));
    }

}
